package com.xiechuang.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @Description
 * @Author xiechuang
 * @Date 2022/7/3
 */
public class MyPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return s.equals(charSequence.toString());
    }

}
